<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*,java.util.*,vo.*,utils.*" errorPage="" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加产品信息</title>
<script>
function callBack(){
	var role=1;
	 var   aa   =   document.getElementsByName("role");   
      for   (var   i=0;   i<aa.length;   i++)   
      {   
            if(aa[i].checked){
				role=aa[i].value;   
				break;
			}
      }   

	opener.form1.role.value=role;
	opener.form1.remark.value=form1.remark.value;
	//alert(form1.remark.value);
	opener.submitEdit();
	window.close()
}
</script>
</head>

<body>


<form name="form1" onsubmit="return false">
<input type="radio" name="role" value="1"  checked="checked" />供方<br />
<input type="radio" name="role" value="2" />需方<br />
备注:<br />
<textarea name="remark" style="width:200px;height:50px"></textarea><br />
<input type="button" onclick="callBack()" value="确定" />
</form></body>
</html>
